package com.just.bz_back.model.dto;

import com.just.bz_back.model.RepairWithBLOBs;

import java.util.*;

public class RepairPacking {
    static HashMap<Integer,String> list=  new HashMap<>();
    static {
        list.put(0,"已删除");
        list.put(1,"等待维修");
        list.put(2,"正在维修");
        list.put(3,"维修完成");
        list.put(4,"评价完成");
    }

    public static List<RepairWithBLOBs> PackRepair(List<RepairWithBLOBs> repairWithBLOBs)
    {
        repairWithBLOBs.forEach(o->
        {
            o.setStatusName(list.get(o.getStatus()));
        });
        return repairWithBLOBs;
    }

}
